package com.app.base.utlis.data;

import com.app.base.service.core.personnel.entity.PersonInfo;

public class PersonInfoUtils {

    public static String getCountenance(PersonInfo personInfo) {
        String countenance;
        switch (personInfo.getPoliticCountenance()){
            case 0:{
                countenance = "党员";
                break;
            }
            case 1 :{
                countenance = "团员";
                break;
            }
            case 2 :{
                countenance = "群众";
                break;
            }
            default:
                countenance = null;
        }
        return countenance;
    }

    public static String getEducations(PersonInfo personInfo) {
        String educations;
        switch (personInfo.getEducation()){
            case 0:{
                educations = "博士";
                break;
            }
            case 1 :{
                educations = "硕士";
                break;
            }
            case 2 :{
                educations = "本科";
                break;
            }
            case 3 :{
                educations = "专科";
                break;
            }
            case 4 :{
                educations = "其他";
                break;
            }
            default:
                educations = null;
        }
        return educations;
    }
}
